package com.itheima.pojo;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @Description  
 * @Author  Hunter
 * @Date 2020-08-03 
 */

@Setter
@Getter
@ToString
@Entity
@Table ( name ="t_web_visit" )
public class WebVisit  implements Serializable {

	private static final long serialVersionUID =  1845009722648563195L;

	/**
	 * 主键
	 */
	@Id
	@Column(name = "uid" )
	private String uid;

	/**
	 * 用户uid
	 */
   	@Column(name = "user_uid" )
	private String userUid;

	/**
	 * 访问ip地址
	 */
   	@Column(name = "ip" )
	private String ip;

	/**
	 * 用户行为
	 */
   	@Column(name = "behavior" )
	private String behavior;

	/**
	 * 模块uid（文章uid，标签uid，分类uid）
	 */
   	@Column(name = "module_uid" )
	private String moduleUid;

	/**
	 * 附加数据(比如搜索内容)
	 */
   	@Column(name = "other_data" )
	private String otherData;

	/**
	 * 状态
	 */
   	@Column(name = "status" )
	private Integer status;

	/**
	 * 创建时间
	 */
   	@Column(name = "create_time" )
	private Date createTime;

	/**
	 * 更新时间
	 */
   	@Column(name = "update_time" )
	private Date updateTime;

	/**
	 * 操作系统
	 */
   	@Column(name = "os" )
	private String os;

	/**
	 * 浏览器
	 */
   	@Column(name = "browser" )
	private String browser;

	/**
	 * ip来源
	 */
   	@Column(name = "ip_source" )
	private String ipSource;

}
